/* Define CSS Variables for Light and Dark Modes */
:root {
    --primary-color: #218838;
    --secondary-color: #ff9d00;
    --accent-color: #003f6a;
    --background-color: #f4f4f4;
    --text-color: #333;
    --button-radius: 5px;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-bg: #006f69;
    --header-text: #ffffff;
    --nav-link: #ffffff;
    --nav-hover-bg: #ffffff;
    --nav-hover-text: #2E3A59;
    --hero-bg: linear-gradient(to right, #006F6A, #4CAF50);
    --hero-text: white;
    --section-title-bg: #006F6A;
    --section-title-text: #ffffff;
    --section-text: #006f69;
    --item-bg: rgba(255, 255, 255, 0.322);
    --item-text: #555;
    --button-bg: #ff9d00;
    --button-text: white;
    --button-hover-bg: #003f6a;
    --cart-bg: #f4f4f4;
    --footer-bg: #006F6A;
    --footer-text: white;
    --social-icon: white;
    --social-icon-hover: #ff9d00;
    --scrollbar-track: #f0f0f0;
    --scrollbar-thumb: #006f69;
    --scrollbar-thumb-hover: #004c49;
}

body.dark-mode {
    --background-color: #001f3f; /* Deep navy */
    --text-color: #f5f5f5; /* Soft white */
    --header-bg: #001833; /* Darker navy */
    --header-text: #ff9d00; /* Gold */
    --nav-link: #f5f5f5; /* Soft white */
    --nav-hover-bg: #ff9d00; /* Gold */
    --nav-hover-text: #001f3f; /* Deep navy */
    --hero-bg: linear-gradient(to right, #001833, #003f6a); /* Navy gradient */
    --hero-text: #ff9d00; /* Gold */
    --section-title-bg: #001833; /* Darker navy */
    --section-title-text: #ff9d00; /* Gold */
    --section-text: #f5f5f5; /* Soft white */
    --item-bg: #003f6a; /* Lighter navy */
    --item-text: #f5f5f5; /* Soft white */
    --button-bg: #ff9d00; /* Gold */
    --button-text: #001f3f; /* Deep navy */
    --button-hover-bg: #e68a00; /* Darker gold */
    --cart-bg: #003f6a; /* Lighter navy */
    --footer-bg: #001833; /* Darker navy */
    --footer-text: #ff9d00; /* Gold */
    --social-icon: #ff9d00; /* Gold */
    --social-icon-hover: #f5f5f5; /* Soft white */
    --shadow-color: rgba(255, 255, 255, 0.1); /* Light shadow for dark mode */
    --scrollbar-track: #001833; /* Darker navy */
    --scrollbar-thumb: #ff9d00; /* Gold */
    --scrollbar-thumb-hover: #e68a00; /* Darker gold */
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-left: 20px;
}

.theme-toggle-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: var(--header-bg);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px var(--shadow-color);
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 55px;
    height: 55px;
}

header .logo h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Georgia', serif;
    color: var(--header-text);
    text-transform: uppercase;
    margin-left: 10px;
}

header h1 {
    color: var(--header-text);
    font-weight: 800;
    font-style: italic;
    font-size: 25px;
}

/* Navigation Bar */
nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--nav-link);
    font-size: 20px;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.7s ease;
    border-radius: 5px;
}

nav a:hover {
    background-color: var(--nav-hover-bg);
    color: var(--nav-hover-text);
    transform: scale(1.05);
    border-radius: 20px;
    box-shadow: 0 4px 10px var(--shadow-color);
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    color: var(--hero-text);
    background: var(--hero-bg);
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: blur(8px);
    border-radius: 10px;
}

.hero-text {
    position: absolute;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero-text h2 {
    padding-bottom: 55px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.7rem;
    margin-top: 10px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

/* Container */
.container {
    padding: 2rem;
}

/* Section */
.section {
    margin-bottom: 2rem;
}

.section h2 {
    color: var(--section-title-text);
    font-size: 22px;
    width: 90px;
    padding: 20px;
    align-items: center;
    margin-bottom: 3rem;
    background-color: var(--section-title-bg);
    border-radius: 18px;
}

/* Items Grid */
.items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 50px;
}

.item {
    background-color: var(--item-bg);
    border-radius: 18px;
    box-shadow: 5px #00000071;
    overflow: hidden;
    transition: transform 0.7s, box-shadow 0.3s;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

.item img {
    width: 100%;
    height: auto;
}

.item .info {
    padding: 30px;
    text-align: center;
    font-size: 18px;
}

.item .info h3 {
    color: var(--primary-color);
    margin: 1.5rem;
    font-size: 18px;
}

body.dark-mode .item .info h3 {
    color: var(--secondary-color); /* Gold for dark mode */
}

.item .info p {
    color: var(--item-text);
    margin: 0.5rem 0;
    font-size: 18px;
}

.item .info button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: var(--button-radius);
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.item .info button:hover {
    background-color: var(--button-hover-bg);
    transform: scale(1.05);
}

/* Cart Container */
#cart {
    background-color: var(--cart-bg);
    padding: 20px;
    border-radius: var(--button-radius);
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cart:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

/* Cart Items */
#cart-items {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Total Price */
#total-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.3rem;
}

body.dark-mode #total-price {
    color: var(--secondary-color); /* Gold for dark mode */
}

/* General Button Styles */
button {
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
    margin-top: 1rem;
    border-radius: var(--button-radius);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--button-text);
    font-weight: bold;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.btn-primary:hover {
    background-color: var(--button-hover-bg);
    transform: scale(1.05);
    box-shadow: 0 4px 10px var(--shadow-color);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--button-text);
    font-weight: bold;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.btn-secondary:hover {
    background-color: var(--button-hover-bg);
    transform: scale(1.05);
    box-shadow: 0 4px 10px var(--shadow-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 25px;
    text-align: center;
    margin-top: 50px;
}

footer p {
    font-size: 18px;
    font-weight: 400;
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    text-decoration: none;
    color: var(--social-icon);
    font-size: 30px;
    transition: color 0.5s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--social-icon-hover);
    transform: scale(1.3);
}

/* Customize the scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
    border: 2px solid var(--scrollbar-track);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Optional: Hide scrollbar for specific elements */
.hidden-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hidden-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        flex-direction: column;
        gap: 20px;
    }

    nav a {
        font-size: 16px;
        padding: 10px 20px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    table th, table td {
        padding: 10px 12px;
    }
}